package com.oa.modules.approvalsec1.dao;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oa.modules.approvalsec1.entity.CategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author yangwenzhi
 * @email 785297226@qq.com
 * @date 2021-12-27 10:37:11
 */
@Mapper
public interface CategoryDao extends BaseMapper<CategoryEntity> {


    /**
     * 查询总条数
     *
     * @author yangwenzhi
     * @email 785297226@qq.com
     * @date 2021-12-27 10:37:11
     * @Description 查询分页数据
     */
    long findPage(@Param("params") Map<String, Object> params);

    /**
     * 查询分页数据
     *
     * @author yangwenzhi
     * @email 785297226@qq.com
     * @date 2021-12-27 10:37:11
     * @Description 查询分页数据
     */
    List<CategoryEntity> findRecords(IPage<CategoryEntity> page, @Param("params") Map<String, Object> params);

}
